package com.xing.binbackend.pattern.factory12.largemodel;

// 工厂类
class ModelLoaderFactory {
    public static ModelLoader createLoader(String modelType) {
        switch (modelType.toLowerCase()) {
            case "bert":
                return new BertLoader();
            case "gpt":
                return new GPTLoader();
            default:
                throw new IllegalArgumentException("不支持的模型类型");
        }
    }
}